import request from '@/utils/request'

// 查询器材损坏记录列表
export function listDamage(query) {
  return request({
    url: '/test/damage/list',
    method: 'get',
    params: query
  })
}

// 查询器材损坏记录详细
export function getDamage(equipmentDamageId) {
  return request({
    url: '/test/damage/' + equipmentDamageId,
    method: 'get'
  })
}

// 新增器材损坏记录
export function addDamage(data) {
  return request({
    url: '/test/damage',
    method: 'post',
    data: data
  })
}

// 修改器材损坏记录
export function updateDamage(data) {
  return request({
    url: '/test/damage',
    method: 'put',
    data: data
  })
}

// 删除器材损坏记录
export function delDamage(equipmentDamageId) {
  return request({
    url: '/test/damage/' + equipmentDamageId,
    method: 'delete'
  })
}
